<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<title>美丽说-商品详细页面</title>
	<link rel="stylesheet" href="/public/home/css/base.css" type="text/css" />
	<link rel="stylesheet" href="/public/home/css/shop_detail.css" type="text/css" />
	<link rel="stylesheet" href="/public/home/css/shop_common.css" type="text/css" />
	<link rel="stylesheet" href="/public/home/css/shop_header.css" type="text/css" />
	<link rel="stylesheet" href="/public/home/css/shop_list.css" type="text/css" />
    <link rel="stylesheet" href="/public/home/css/shop_goods.css" type="text/css" />
    <link rel="icon" href="/public/home/images/7d026282ff00a259b6a7b90eee6d_48_48.c5.png" type="image/x-icon"/>
    <script type="text/javascript" src="/public/home/js/jquery.js" ></script>
    <script type="text/javascript" src="/public/home/js/topNav.js" ></script>
</head>
<body>
	<!-- Header  -wll-2013/03/24 -->
	<div class="shop_hd">
		<!-- Header TopNav -->
		<div class="shop_hd_topNav">
			<div class="shop_hd_topNav_all">
				<!-- Header TopNav Left -->
				@if(!session('id'))
          <div class="shop_hd_topNav_all_left">
            <p>您好，欢迎来到&nbsp;
              美丽说商城&nbsp;[
              <a href={{url('/login')}}>登录</a>]&nbsp;[
              <a href={{url('/register')}}>注册</a>]</p></div>
          @else
            <div class="shop_hd_topNav_all_left">
            <p><span style="color:red">{{session("username")}}</span>&nbsp;您好，欢迎来到&nbsp;
              美丽说商城&nbsp;[
              <a href={{url('/clear/clear')}}>退出</a>]&nbsp;</p></div>
          @endif
				<!-- Header TopNav Left End -->

				<!-- Header TopNav Right -->
				<div class="shop_hd_topNav_all_right">
					<ul class="topNav_quick_menu">

						<li>
							<div class="topNav_menu">
								<a href="#" class="topNavHover">我的商城<i></i></a>
								<div class="topNav_menu_bd" style="display:none;" >
						            <ul>
						              <li><a title="已买到的商品" target="_top" href="{{url('/order/orderlist')}}">已买到的商品</a></li>
						              <li><a title="个人主页" target="_top" href="{{url('/basics/basics')}}">个人主页</a></li>
						              <li><a title="我的好友" target="_top" href="#">我的好友</a></li>
						            </ul>
						        </div>
							</div>
						</li>
                                                <li>
							<div class="topNav_menu">
								<a href="#" class="topNavHover">卖家中心<i></i></a>
								<div class="topNav_menu_bd" style="display:none;">
						            <ul>
						              <li><a title="已售出的商品" target="_top" href="#">已售出的商品</a></li>
						              <li><a title="销售中的商品" target="_top" href="#">销售中的商品</a></li>
						            </ul>
						        </div>
							</div>
						</li>

						<li>
							<div class="topNav_menu">
								<a href="{{ url('/cart') }}" class="topNavHover">购物车</a>
								<div class="topNav_menu_bd" style="display:none;">
									<!--
						            <ul>
						              <li><a title="已售出的商品" target="_top" href="#">已售出的商品</a></li>
						              <li><a title="销售中的商品" target="_top" href="#">销售中的商品</a></li>
						            </ul>
						        	-->
						            <p>还没有商品，赶快去挑选！</p>
						        </div>
							</div>
						</li>

						<li>
							<div class="topNav_menu">
								<a href="#" class="topNavHover">我的收藏<i></i></a>
								<div class="topNav_menu_bd" style="display:none;">
						            <ul>
						              <li><a title="收藏的商品" target="_top" href="{{ url('/collection/index/1') }}">收藏的商品</a></li>
						              <li><a title="收藏的店铺" target="_top" href="{{ url('/collection/index/2') }}">收藏的店铺</a></li>
						            </ul>
						        </div>
							</div>
						</li>

						<li>
							<div class="topNav_menu">
								<a href="#">站内消息</a>
							</div>
						</li>

					</ul>
				</div>
				<!-- Header TopNav Right End -->
			</div>
			<div class="clear"></div>
		</div>
		<div class="clear"></div>
		<!-- Header TopNav End -->

		<!-- TopHeader Center -->
		<div id="collection">
			<div class="one">添加收藏成功</div>
			<div class="two">
				<a href="{{ url('/collection/index',['status'=>1]) }}">去收藏夹查看>></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<a href="javascript:;" class="wait">以后再去</a>
			</div>
		</div>
		<div class="shop_hd_header">
			<div id="market">
				<div>
					<img style="width:80px;border-radius:50%" src="/uploads/{{ $goods->mar_pic }}" alt="{{ $goods->mar_name }}" />
				</div>
				<div class="market_ul">
					<span>{{ $goods->mar_name }}</span>
					<ul>
						<li>描述:</li>
						<li class="red">4.7</li>
						<li>价格:</li>
						<li class="red">4.9</li>
						<li>质量:</li>
						<li class="red">4.8</li>
						<li>服务:</li>
						<li class="red">4.9</li>
					</ul>
				</div>
				<div class="button">
					<input type="hidden" name="market_id" value="{{ $goods->market_id }}">
					<button class="collection">收藏店铺</button>
					<button>联系客服</button>
				</div>
			</div>
			<script type="text/javascript">
				$('.collection').click(function(){
					var id = $(this).parents('.button').find('input').val();
					var coll = $(this);
					$.get('/collection/insert',{id:id},function(data){
						if(data == 1){
							//显示提示框
							$('#collection').show();
							//获取当前可视区域宽度
							var kw = $(window).width();
							//获取当前可视区域高度
							var kh = $(window).height();
							//获取当前元素的宽度
							var dh = $('#collection').height();
							//获取当前元素的高度
							var dw = $('#collection').width();
							//计算当前元素显示的位置
							var nw = (kw - dw)/2;
							var nh = (kh - dh)/2;
							$('#collection').css({right:nw+'px',top:nh+'px'});
						}else if(data == 2){
							location.href = '/login';
						}else{
							alert('收藏失败');
						}
					});
				});
				//以后再去收藏夹
				$('.wait').click(function(){
					$('.wait').parents('#collection').css('display','none');
				});
			</script>

			<div class="shop_hd_header_search">
                <ul class="shop_hd_header_search_tab">
			        <li id="search" class="current">商品</li>
			        
			    </ul>
                <div class="clear"></div>
			    <div class="search_form">
			    	<form method="get" action="{{url('/goodslist')}}">
			    		<div class="search_formstyle">
			    			<input type="text" class="search_form_text" name="search_content" placeholder="搜索其实很简单！" />
			    			<input type="submit" class="search_form_sub" name="secrch_submit" value="" title="搜索" />
			    			{{ csrf_field() }}
			    		</div>
			    	</form>
			    </div>
                <div class="clear"></div>
			    <div class="search_tag">
            <a href="{{url('/goodslist?goods_name=裙子')}}">裙子</a>
            <a href="{{url('/goodslist?goods_name=上衣')}}">上衣</a>
            <a href="{{url('/goodslist?goods_name=连衣裙')}}">连衣裙</a>
            <a href="">化妆品</a>
            <a href="">手提包</a></div>

			</div>
		</div>
		<div class="clear"></div>
		<!-- TopHeader Center End -->

		<!-- Header Menu -->
		<div class="shop_hd_menu">
			<!-- 所有商品菜单 -->
                        
			<div id="shop_hd_menu_all_category" class="shop_hd_menu_all_category"><!-- 首页去掉 id="shop_hd_menu_all_category" 加上clsss shop_hd_menu_hover -->
				<div class="shop_hd_menu_all_category_title"><h2 title="所有商品分类"><a href="javascript:void(0);">所有商品分类</a></h2><i></i></div>
				<div id="shop_hd_menu_all_category_hd" class="shop_hd_menu_all_category_hd">
					<ul class="shop_hd_menu_all_category_hd_menu clearfix">
						<!-- 菜单项 -->
						@foreach($menu as $k=>$v)
						<li id="cat_{{$k+1}}" class="">
							<h3><a href="{{ url('/goodslist?cate='.$v->id) }}" >{{ $v->name }}</a></h3>
							@if($v->sub)
							<div id="cat_1_menu" class="cat_menu clearfix" style="">
								@foreach($v->sub as $kk=>$vv)
								<dl class="clearfix">
									<dt><a href="{{ url('/goodslist?cate='.$vv->id) }}" >{{ $vv->name }}</a></dt>
									@if($vv->sub)
									<dd>
										@foreach($vv->sub as $kkk=>$vvv)
										<a href="{{ url('/goodslist?cate='.$vvv->id) }}">{{ $vvv->name }}</a>
										@endforeach
									</dd>
									@endif
								</dl>

                                @endforeach
              </div>
                            @endif
            </li>
            @endforeach
            <!-- 菜单项 End -->
          </ul>
        </div>
      </div>
        <!-- 所有商品菜单 END -->
        <!-- 普通导航菜单 -->
        <ul class="shop_hd_menu_nav">
          <li class="current_link">
            <a href="{{ url('/') }}">
              <span>首页</span></a>
          </li>
          <li class="link">
            <a href="">
              <span>团购</span></a>
          </li>
          <li class="link">
            <a href="">
              <span>品牌</span></a>
          </li>
          <li class="link">
            <a href="">
              <span>优惠卷</span></a>
          </li>
          <li class="link">
            <a href="">
              <span>积分中心</span></a>
          </li>
          <li class="link">
            <a href="">
              <span>运动专场</span></a>
          </li>
          <li class="link">
            <a href="">
              <span>微商城</span></a>
          </li>
          <li class="link">
            <a href="{{ url('/community/index') }}">
              <span>社区</span></a>
          </li>
        </ul>
        <!-- 普通导航菜单 End --></div>
      <!-- Header Menu End --></div>
    <div class="clear"></div>
	<!-- 面包屑 注意首页没有 -->
	<div class="shop_hd_breadcrumb">
		<strong>当前位置：</strong>
		<span>
			<a href="{{ url('/') }}">首页</a>&nbsp;›&nbsp;
			<a href="{{ url('/goodslist') }}">商品列表</a>&nbsp;›&nbsp;
			<a href="javascript:;">商品详情</a>
		</span>
	</div>
	<div class="clear"></div>
	<!-- 面包屑 End -->

	<!-- Header End -->
	
	<div id="success">
		<div class="one">已将商品添加到购物车</div>
		<div class="two">
			<a href="{{ url('/cart') }}">去购物车结算>></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			<a href="javascript:;" id="wait">稍后去结算</a>
		</div>
	</div>
	<div id="error">
		<div class="one">出错啦</div>
	</div>
	<!-- Goods Body -->
	<div class="shop_goods_bd clear">

		<!-- 商品展示 -->
		<div class="shop_goods_show">
			<div class="shop_goods_show_left">
				<!-- 京东商品展示 -->
				<link rel="stylesheet" href="/public/home/css/shop_goodPic.css" type="text/css" />
				<script type="text/javascript" src="/public/home/js/shop_goodPic_base.js"></script>
				<script type="text/javascript" src="/public/home/js/lib.js"></script>
				<script type="text/javascript" src="/public/home/js/163css.js"></script>
				<div id="preview">
					<div class=jqzoom id="spec-n1">
						<IMG height="350" src="{{ $goods->goods_pic }}" jqimg="{{ $goods->goods_pic }}" width="350">
					</div>
						<div id="spec-n5">
							<div class=control id="spec-left">
								<img src="/public/home/images/left.gif" />
							</div>
							<div id="spec-list">
								<ul class="list-h">
									<li><img src="{{ $goods->goods_pic }}"> </li>
								</ul>
							</div>
							<div class=control id="spec-right">
								<img src="/public/home/images/right.gif" />
							</div>
							
					    </div>
					</div>

					<SCRIPT type=text/javascript>
						$(function(){			
						   $(".jqzoom").jqueryzoom({
								xzoom:400,
								yzoom:400,
								offset:10,
								position:"right",
								preload:1,
								lens:1
							});
							$("#spec-list").jdMarquee({
								deriction:"left",
								width:350,
								height:56,
								step:2,
								speed:4,
								delay:10,
								control:true,
								_front:"#spec-right",
								_back:"#spec-left"
							});

							$("#spec-list img").bind("mouseover",function(){
								var src=$(this).attr("src");
								$("#spec-n1 img").eq(0).attr({
									src:src.replace("\/n5\/","\/n1\/"),
									jqimg:src.replace("\/n5\/","\/n0\/")
								});
								$(this).css({
									"border":"2px solid #ff6600",
									"padding":"1px"
								});
							}).bind("mouseout",function(){
								$(this).css({
									"border":"1px solid #ccc",
									"padding":"2px"
								});
							});				
						})
						</SCRIPT>
					<!-- 京东商品展示 End -->
			</div>
			
			

			<div class="shop_goods_show_right">
				<ul class="ul">
					<li>
						<strong style="font-size:20px; font-weight:bold;">{{ $goods->goods_name }}</strong>
					</li>
					<li>
						<label>价格：</label>
						<span id="goods_price"><strong>{{ $goods->goods_price }}</strong>元</span>
					</li>
					<li>
						<label>运费：</label>
						<span>卖家承担运费</span>
					</li>
					<li>
						<label>评价：</label>
						<span>{{ $num }}&nbsp;条评论</span>
					</li>
					<div id="color_size">
					<li id="color">
						<label>颜色：</label>
						@foreach($goods->goods_color as $k=>$v)
						<a href="javascript:;">
							@if($v == 1)
								红色
							@elseif($v == 2)
								黄色
							@elseif($v == 3)
								蓝色
							@elseif($v == 4)
								绿色
							@elseif($v == 5)
								黑色
							@elseif($v == 6)
								白色
							@else
								什么鬼东西
							@endif
						</a>
						@endforeach
					</li>
					<li id="size">
						<label>尺码：</label>
						@foreach($goods->goods_size as $k=>$v)
						<a href="javascript:;">
							@if($v == 1)
								XXS
							@elseif($v == 2)
								XS
							@elseif($v == 3)
								X
							@elseif($v == 4)
								S
							@elseif($v == 5)
								M
							@elseif($v == 6)
								L
							@elseif($v == 7)
								XL
							@elseif($v == 8)
								XXL
							@else
								什么鬼东西
							@endif
						</a>
						@endforeach
					</li>
					</div>
					<li class="goods_num">
						<label>购买数量：</label>
						<span>
							<a class="good_num_jian" id="good_num_jian"></a>
							<input type="text" value="1" name="num" id="good_nums" class="good_nums" />
							<a id="good_num_jia" class="good_num_jia"></a>&nbsp;<span style="color:gray;">当前库存{{ $goods->goods_stock }}件</span>&nbsp;&nbsp;<span id="stock" style="color:red;display:none;">你输入的数量已经超过当前库存</span>
							<!-- 商品的库存 -->
							<input type="hidden" id="good_stock" value="{{ $goods->goods_stock }}">
							<!-- 商品的id -->
							<input class="goods_id" type="hidden" name="id" value="{{ $goods->id }}">
						</span>
					</li>
                    <li class="goods_num">
						<label>商品总价：</label>
						&yen;<span id="good_count">{{ $goods->goods_price }}</span>
					</li>
					<li class="goods_num">
						<label>&nbsp;</label>
						<button id="treasure">收藏宝贝</button>
					</li>
					<li style="padding:20px 0;">
						<label>&nbsp;</label>
						<span><a href="javascript:;" id="goods_cart" class="goods_sub goods_sub_gou" >加入购物车</a></span>
					</li>
				</ul>
			</div>

			<script type="text/javascript">
				//收藏宝贝
				$('#treasure').click(function(){
					var id = $(this).parents('.ul').find('.goods_id').val();
					var treasure = $(this);
					$.get('/collection/insertgoods',{id:id},function(data){
						if(data == 1){
							//显示提示框
							$('#collection').show();
							//获取当前可视区域宽度
							var kw = $(window).width();
							//获取当前可视区域高度
							var kh = $(window).height();
							//获取当前元素的宽度
							var dh = $('#collection').height();
							//获取当前元素的高度
							var dw = $('#collection').width();
							//计算当前元素显示的位置
							var nw = (kw - dw)/2;
							var nh = (kh - dh)/2;
							$('#collection').css({right:nw+'px',top:nh+'px'});
						}else if(data == 2){
							location.href = '/login';
						}else if(data == 4){
							alert('已经收藏过了');
						}else{
							alert('收藏失败');
						}
					});
				});
				//选择颜色
				$('#color a').click(function(){
					//加class属性
					$(this).addClass('biaoshi');
					//并且删除除了自己之外的同辈元素的class
					$(this).siblings().removeClass('biaoshi');
					$('#color').removeAttr('border');
				});
				//选择大小
				$('#size a').click(function(){
					//加class属性
					$(this).addClass('biaoshi');
					//并且删除除了自己之外的同辈元素的class
					$(this).siblings().removeClass('biaoshi');
					$('#size').removeAttr('border');
				});
				//购物车单击事件
				$('#goods_cart').click(function(){
					//获取购买商品数量
					var num = $('#good_nums').val();
					//获取商品id
					var id = $('input[name=id]').val();
					//获取选中的颜色
					var color = $('#color .biaoshi').html();
					//获取选中的大小
					var size = $('#size .biaoshi').html();
					//判断用户是否选择了颜色
					if(!color){
						$('#color_size').css('border','1px solid red');
						return false;
					}
					//判断用户是否选择了大小
					if(!size){
						$('#color_size').css('border','1px solid red');
						return false;
					}

					//发送ajax
					$.get('/insert',{id:id,num:num,color:color,size:size},function(data){
						if(data == 1){
							//显示提示框
							$('#success').show();
							//获取当前可视区域宽度
							var kw = $(window).width();
							//获取当前可视区域高度
							var kh = $(window).height();
							//获取当前元素的宽度
							var dh = $('#success').height();
							//获取当前元素的高度
							var dw = $('#success').width();
							//计算当前元素显示的位置
							var nw = (kw - dw)/2;
							var nh = (kh - dh)/2;
							$('#success').css({right:nw+'px',top:nh+'px'});
						}else{
							//显示提示框
							$('#error').show();
							//获取当前可视区域宽度
							var kw = $(window).width();
							//获取当前可视区域高度
							var kh = $(window).height();
							//获取当前元素的宽度
							var dh = $('#error').height();
							//获取当前元素的高度
							var dw = $('#error').width();
							//计算当前元素显示的位置
							var nw = (kw - dw)/2;
							var nh = (kh - dh)/2;
							$('#error').css({right:nw+'px',top:nh+'px'});
						}
					})
				});
				//单击事件
				$('#good_num_jian').click(function(){
					//获取数量
					var num = parseInt($('#good_nums').val());
					//获取库存
					var stock = parseInt($('#good_stock').val());
					num = num - 1;
					//当数量小于等于库存时  隐藏提示文字
					if(num <= stock){
						$('#stock').hide();
					}
					//当数量小于1时 等于1
					if(num == 0){
						num = 1;
					}
					//设置
					$('#good_nums').val(num);
					//获取价格
					var price = parseFloat($('#goods_price').find('strong').html());
					//计算总价
					var total = num * price;
					$('#good_count').html(total);
				})
				//单击事件
				$('#good_num_jia').click(function(){
					//获取数量
					var num = parseInt($('#good_nums').val());
					//获取库存
					var stock = parseInt($('#good_stock').val());

					num = num + 1;
					if(num > stock){
						//如果输入的数量大于库存 显示提示文字
						$('#stock').show();
					}
					//设置
					$('#good_nums').val(num);
					//获取价格
					var price = parseFloat($('#goods_price').find('strong').html());
					//计算总价
					var total = num * price;
					$('#good_count').html(total);
				})
				//失去焦点
				$('#good_nums').blur(function(){
					//获取数量
					var num = parseInt($('#good_nums').val());
					//获取库存
					var stock = parseInt($('#good_stock').val());
					//判断用户输入的数量是否大于库存
					if(num <= stock){
						$('#stock').hide();
					}else{
						$('#stock').show();
					}
					//获取价格
					var price = parseFloat($('#goods_price').find('strong').html());
					//计算总价
					var total = num * price;
					$('#good_count').html(total);
				});
				//稍后结算
				$('#wait').click(function(){
					$('#wait').parents('#success').css('display','none');
				});
			</script>
		</div>
		<!-- 商品展示 End -->

		<div class="clear mt15"></div>
		<!-- Goods Left -->
		<div class="shop_bd_list_left clearfix">
			<!-- 看了又看 -->
			<div class="shop_bd_list_bk clearfix">
				<div class="title">看了又看</div>
				<div class="contents clearfix">
					<ul class="clearfix">
						@foreach($market_goods as $k=>$v)
						<li class="clearfix">
							<div class="goods_name"><a href="{{ url('/detail?id='.$v->id) }}">{{ $v->goods_name }}</a></div>
							<div class="goods_pic"><span class="goods_price">¥ {{ $v->goods_price }} </span><a href="{{ url('/detail?id='.$v->id) }}"><img src="{{ $v->goods_pic }}" /></a></div>
							<div class="goods_xiaoliang">
								<span class="goods_xiaoliang_link"><a href="{{ url('/detail?id='.$v->id) }}">去看看</a></span>
								<span class="goods_xiaoliang_nums">库存<strong>{{ $v->goods_stock }}</strong>件</span>
							</div>
						</li>
						@endforeach
					</ul>
				</div>
			</div>
			<!-- 看了又看 -->
			<div class="clear"></div>
		</div>
		<!-- Goods Left End -->

		<!-- 商品详情 -->
		<script type="text/javascript" src="/public/home/js/shop_goods_tab.js"></script>
		<div class="shop_goods_bd_xiangqing clearfix">
			<div class="shop_goods_bd_xiangqing_tab">
				<ul>
					<li id="xiangqing_tab_1" onmouseover="shop_goods_easytabs('1', '1');" onfocus="shop_goods_easytabs('1', '1');" onclick="return false;"><a href=""><span>商品描述</span></a></li>
					<li id="xiangqing_tab_2" onmouseover="shop_goods_easytabs('1', '2');" onfocus="shop_goods_easytabs('1', '2');" onclick="return false;"><a href=""><span>商品评论</span></a></li>
					<li id="xiangqing_tab_3" onmouseover="shop_goods_easytabs('1', '3');" onfocus="shop_goods_easytabs('1', '3');" onclick="return false;"><a href=""><span>商品同类</span></a></li>
				</ul>
			</div>
			<style type="text/css">
				.comment_list{width: 100%;height: auto;clear: both;margin-bottom: 20px;float: left;border-bottom: 1px dotted #cccccc;padding-bottom: 10px;}
				.comment_list .avatar{width: 50px;height: auto;margin-right: 10px;float: left;}
				.comment_list .avatar img{width: 50px;height: 50px;overflow: hidden;}
				.comment_list .avatar span{height: 24px;line-height: 24px;display: inline-block;}
				.comment_list_content{width: 700px;height: auto;float: right;}
				.comment_list_content .comment_list_content_l{width: 500px;float: left;}
				.comment_list_content_l p.tit{width: 100%;height: 24px;line-height: 24px;}
				.comment_list_content_l p.tit span{margin-right: 10px;}
				.comment_list_content_l .star i{width: 13px;height: 13px;display: inline-block;background: url();}
				.comment_list_content_l .star i.cur{background: url();}
				.comment_list_content_l p.con{line-height: 150%;}
				.comment_list_content .comment_list_content_r{width: 200px;float: right;text-align: right;}
				.comment_list_content_r a{height: 24px;line-height: 24px;padding: 0 8px;display: inline-block;border: 1px solid #dfdfdf;border-radius: 3px;margin-top: 30px;color: #333333;}
				.comment_list_content_r a:hover{color: #cc0000;text-decoration: none;}
				.comment_list_content_r a i{font-style: normal;padding: 0 5px;color: #cc0000;font-weight: bold;}
			</style>
			<div class="shop_goods_bd_xiangqing_content clearfix">
				<div id="xiangqing_content_1" class="xiangqing_contents clearfix">
					<p>{!! $goods->goods_content !!}</p>
				</div>

				<div id="xiangqing_content_2" class="xiangqing_contents clearfix">
					<!--评论 开始-->
					@if($num == 0)
						<div>该商品还没有评论</div>
					@else
					<div id="comment"><a href="{{ url('/detail?id='.$goods->id.'&status=1') }}">好评</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="{{ url('/detail?id='.$goods->id.'&status=2') }}">差评</a></div>
					@foreach($comment as $k=>$v)
					<div class="comment_list">
						<div class="avatar">
							<img src="{{ $v->pic }}">
							<span>{{$v->username}}</span>
						</div>
						<div class="comment_list_content">
							<div class="comment_list_content_l">
								<p class="tit">
									<span class="time">{{date('Y-m-d H:i:s',$v->date)}}</span>
								</p>
								<p class="con">
									{{ $v->content }}
								</p>
							</div>
							<div class="comment_list_content_r">
								<input class="id" type="hidden" name="comment_id" value="{{ $v->id }}">
								<a href="javascript:;">有用 (<i class="assist">{{ $v->assist }}</i>)</a>
								<a href="javascript:;">没用 (<i class="stamp">{{ $v->stamp }}</i>)</a>
							</div>
						</div>
					</div>
					@endforeach
					@endif
					<script type="text/javascript">
						//赞
						$('.comment_list_content_r a:nth-child(2)').click(function(){
							//获取评论id
							var id = $(this).parents('.comment_list_content_r').find('.id').val();
							var athis = $(this);
							$.get('/assist',{id:id},function(data){
								if(data == 1){
									var assist = athis.find('.assist').html();
									assist++;
									athis.find('.assist').html(assist);
								}else{
									alert('点赞失败');
								}
							})
						});
						//踩
						$('.comment_list_content_r a:nth-child(3)').click(function(){
							//获取评论id
							var id = $(this).parents('.comment_list_content_r').find('.id').val();
							var athis = $(this);
							$.get('/stamp',{id:id},function(data){
								if(data == 1){
									var stamp = athis.find('.stamp').html();
									stamp++;
									athis.find('.stamp').html(stamp);
								}else{
									alert('踩失败');
								}
							})
						})
					</script>
					<!--评论 结束-->				
				</div>

				<div id="xiangqing_content_3" class="xiangqing_contents clearfix">
					<ul>
						@foreach($good as $k=>$v)
						<li>
							<a class="pic" href="{{ url('/detail?id='.$v->id) }}" target="_blank">
								<img class="lazy" src="{{ $v->goods_pic }}">
							</a>
							<div class="info">
								<div class="price">
									<em class="price-u">¥</em>
									<span class="price-n">{{ $v->goods_price }}</span>
								</div>
								<div class="fav">
									<span class="fav-n">库存: <b>{{ $v->goods_stock }}</b></span>
								</div>
							</div>
							<div class="clear"></div>
							<div class="title">
								<a style="color:black;text-decoration:none;" href="{{ url('/detail?id='.$v->id) }}" target="_blank">{{ $v->goods_name }}</a>
							</div>
						</li>
						@endforeach
					</ul>
				</div>
			</div>
		</div>
		<!-- 商品详情 End -->
	</div>
	<div class="clear"></div>
	<!-- Goods Body End -->
	<!-- Footer - wll - 2013/3/24 -->
    <div class="clear"></div>
	<div class="clear"></div>
	<div class="shop_footer">
            <div class="shop_footer_link">
                <p>
                    <a href="{{ url('/') }}">首页</a>|
                    <a href="">招聘英才</a>|
                    <a href="">广告合作</a>|
                    <a href="">关于美丽说</a>|
                    <a href="">关于我们</a>
                </p>
            </div>
            <div class="shop_footer_copy">
                <p>Copyright 2004-2013 itcast Inc.,All rights reserved.</p>
            </div>
        </div>
	<!-- Footer End -->

</body>
</html>